package com.tvpush.manage.core.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author ouyangzn
 * @since 2019-03-22
 */
@Data
@Accessors(chain = true)
@TableName("tp_version")
public class Version extends Model<Version> {

    private static final long serialVersionUID = 1L;

    /**
     * 版本ID
     */
    private Integer id;
    /**
     * 所属盟友
     */
    @TableField("ally_id")
    private String allyId;
    /**
     * 版本标题
     */
    private String title;
    /**
     * 版本号
     */
    private String version;
    /**
     * 版本简介
     */
    private String desc;
    /**
     * apk地址
     */
    @TableField("apk_url")
    private String apkUrl;
    /**
     * apk大小
     */
    @TableField("apk_size")
    private Integer apkSize;
    /**
     * 备注
     */
    private String remark;
    /**
     * 上架下架状态
     */
    private Long status;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;


    public static final String ID = "id";

    public static final String ALLY_ID = "ally_id";

    public static final String TITLE = "title";

    public static final String VERSION = "version";

    public static final String DESC = "desc";

    public static final String APK_URL = "apk_url";

    public static final String APK_SIZE = "apk_size";

    public static final String REMARK = "remark";

    public static final String STATUS = "status";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
